StartupItemsFolder Function
Used to access the Startup folder.
Syntax
result = StartupItemsFolder
Notes
Items in the Startup Items folder are opened automatically when the user starts the computer. If want your application to give the user the option to automatically open it at system startup, you will need to place it (or an alias to it) in the Startup Items folder.
The StartupItemsFolder function provides a way to access the Startup Items folder that will work under different language systems, and will continue to work even if the operating system is reorganized.
The SpecialFolder module enables you to access many special folders that are managed by the OS.
Windows
StartupItemsFolder accesses the Startup folder for the current user: \Documents and Settings\user\Start Menu\Programs\Startup.
Macintosh
StartupItemsFolder access the Startup Items folder on Mac OS "classic" and returns Nil on Mac OS X.
Linux
StartupItemsFolder returns Nil on Linux.
Example
This example displays the absolute path to the Startup Items folder, if it exists on the user's machine.
f=StartupItemsFolder
if f <> Nil Then
MsgBox f.AbsolutePath
Else
MsgBox "The folderItem does not exist."
End if
See Also
ApplicationSupportFolder, DesktopFolder, FontsFolder, PreferencesFolder, SystemFolder, TemporaryFolder, TrashFolder, SpecialFolder functions.